package com.shenmazong.servereduresume.controller;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shenmazong.servereduresume.dto.TbProject;
import com.shenmazong.servereduresume.service.TbProjectService;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.BatchChooseIdVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 */
@RestController
@RequestMapping("project")
public class TbProjectController {
    @Autowired
    private TbProjectService tbProjectService;
    @PostMapping("findByInformationId")
    public ResultResponse findByInformationId(@RequestBody BatchChooseIdVo batchChooseIdVo){
        return tbProjectService.findByInformationId(batchChooseIdVo);
    }
    @PostMapping("saveOrUpdateProject")
    public ResultResponse saveOrUpdateProject(@RequestBody TbProject tbProject){
        return tbProjectService.saveOrUpdateProject(tbProject);
    }
    @PostMapping("deleteProject")
    public ResultResponse deleteProject(@RequestBody BatchChooseIdVo batchChooseIdVo){
        return tbProjectService.deleteProject(batchChooseIdVo);
    }

}
